package com.cro.prison.entity.vo;/**
 * @author augus
 * @create 2022-11-08-9:52
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @ClassName:Category2Vo （楼层）
 * @Description:TODO
 * @author Augus
 * @date 2022/11/8 9:52
 * @Version 1.0
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category2Vo {

    /**
     * 一级父分类的id
     */
    private Long catalog1Id;

    private Long id;

    private String name;
    /**
     * 三级子分类
     */
    private List<Category3Vo> children;

    /**
     * 三级分类vo（房间号）
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Category3Vo {


        /**
         * 父分类id
         */
        private Long catalog2Id;

        private Long id;

        private String name;


        /**
         * 四级子分类
         */
        private List<Category4Vo> children;

        /**
         * 四级分类vo（异常）
         */
        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        @ToString
        public static class Category4Vo {

            /**
             * 父分类id
             */
            private Long catalog3Id;

            private Long id;

            private String name;

            private String src;

            private List<Category5Vo> children;
            @Data
            @AllArgsConstructor
            @NoArgsConstructor
            public static class Category5Vo {

                /**
                 * 父分类id
                 */
                private Long catalog4Id;

                private Long id;

                private String name;

                private String videoSrc;


            }
        }
    }
}